 /**
 * *****************************************************************************
 * @file    fft.c
 * @author  Jack
 * @version 1.0.0
 * @date    2022-08-26
 * @brief
 *
 *                 Copyright (c) 2021, Andar Technologies Inc.
 *                           www.andartechs.com
 *
 * *****************************************************************************
 */
/*------------------------------ include -------------------------------------*/

#ifndef __FFT__
#define __FFT__

/*------------------------------ include -------------------------------------*/

#include "common.h"

/*------------------------------- define -------------------------------------*/

/*------------------------------- typedef ------------------------------------*/

typedef struct
{
    uint32  chirpNumCfg;
    uint32  chirpNum;
    uint32 chirpPeriod;
    uint32 srcADCR0;
    uint32 srcADCR1;
    uint32 samplePoint;
} dspMemoryStgrTypedef;

/**
 * @brief   Send chirp and collect ADC.
 * @param   dspMemoryStgrTypedef.
 *          See the @dspMemoryStgrTypedef member for details.
 * @return  None.
 * @note
 */
void doSendChirp(dspMemoryStgrTypedef *memory);

/**
 * @brief   Calculate the gain of tia and vag.
 * @param   AnalogDataStrTypedef.
 *          See the @AnalogDataStrTypedef member for details.
 * @param   dspMemoryStgrTypedef.
 *          See the @dspMemoryStgrTypedef member for details.
 * @return  None.
 * @note
 */
void doAGC(AnalogDataStrTypedef *pDataStr, dspMemoryStgrTypedef *memory);

#endif
